<script>
	const mp = uni.requireNativePlugin('uniMP');

	export default {
		onLaunch: function() {
			console.log('Host App Launch')
			//监听小程序通讯数据
			mp.onUniMPEventReceive(ret => {
				console.log('Receive event frome MP: ' + JSON.stringify(ret));
			});
			
		},
		onShow: function() {
			//用于长时间未响应的情况
			setTimeout(() => {
				// #ifdef APP-PLUS 
				plus.navigator.closeSplashscreen()
				// #endif
			}, 2000)
		},
		onHide: function() {
			console.log('Host App Hide')
		}
	}
</script>


<style>
	/*每个页面公共css */
	@import './common/fui-app.css';
	/* #ifndef APP-NVUE */
	@import './components/firstui/fui-theme/fui-theme.css';
	/* #endif */
</style>